package demo2;

import java.util.Stack;

public class Test {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);

        //System.out.println(myStack.getUsedSize());

        int x = myStack.pop();
        System.out.println(x);

        x = myStack.peek();
        System.out.println(x);

        x = myStack.pop();
        System.out.println(x);

        System.out.println(myStack.empty());
        myStack.pop();
        System.out.println(myStack.empty());

        String s = "2";
        char ch = 's';
        s = ch + "";
        int a = Integer.parseInt(s);
        //ch = a +'';

        switch (a) {
            case 1:

                break;
            case 2:
                break;
        }
    }
}
